<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>数据字典管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function() {
            
        });
        function page(n,s){
            $("#pageCurrent").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
    <ul class="nav nav-tabs">
        <li class="active"><a href="${ctx}/pm/pmDataTree/">数据字典列表</a></li>
        <shiro:hasPermission name="pm:pmDataTree:edit">
            <li><a href="${ctx}/pm/pmDataTree/form">数据字典添加</a></li>
        </shiro:hasPermission>
    </ul>
    <form:form id="searchForm" modelAttribute="pmDataTree" action="${ctx}/pm/pmDataTree/" method="post" class="breadcrumb form-search">
        <input id="pageCurrent" name="pageCurrent" type="hidden" value="${page.current}"/>
        <input id="pageSize" name="pageSize" type="hidden" value="${page.size}"/>
        <ul class="ul-form">
            <li><label>编号：</label>
                <form:input path="treeCode" htmlEscape="false" maxlength="30" class="input-medium"/>
            </li>
            <li><label>名称：</label>
                <form:input path="treeName" htmlEscape="false" maxlength="30" class="input-medium"/>
            </li>
            <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
            <li class="clearfix"></li>
        </ul>
    </form:form>
    <sys:message content="${message}"/>
    <table id="contentTable" class="table table-striped table-bordered table-condensed">
        <thead>
            <tr>
                <th>编号</th>
                <th>名称</th>
                <th>备注信息</th>
                <shiro:hasPermission name="pm:pmDataTree:edit">
                    <th>操作</th>
                </shiro:hasPermission>
            </tr>
        </thead>
        <tbody>
        <c:forEach items="${page.records}" var="pmDataTree">
            <tr>
                <td><a href="${ctx}/pm/pmDataTree/form?id=${pmDataTree.id}">
                    ${pmDataTree.treeCode}
                </a></td>
                <td>
                    ${pmDataTree.treeName}
                </td>
                <td>
                    ${pmDataTree.remarks}
                </td>
                <shiro:hasPermission name="pm:pmDataTree:edit">
                    <td>
                        <a href="${ctx}/pm/pmDataTree/form?id=${pmDataTree.id}">修改</a>
                        <a href="${ctx}/pm/pmDataTree/delete?id=${pmDataTree.id}" onclick="return confirmx('确认要删除该数据字典吗？', this.href)">删除</a>
                    </td>
                </shiro:hasPermission>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="pagination">${page}</div>
</body>
</html>